home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 4
/
Gold Medal Software - Volume 4 (Gold Medal) (1994).iso
/
os2
/
pluma109.arj
/
ENGLISH.CMD
next >
Wrap
OS/2 REXX Batch file
|
1994-05-31
|
2KB
|
112 lines
/* ENGLISH.CMD: Install PLUMA in English. */
'@Echo Off'
/* Set the installed object's title. */
Title = 'Pluma 1.09'
/* Load REXXUTIL */
Call RxFuncAdd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs'
Call SysLoadFuncs
/* Initialize */
Signal On Failure Name FAILURE
Signal On Halt Name HALT
Signal On Syntax Name SYNTAX
Call SysCls
Say 'Installing PLUMA...'
Say ''
/* Verify the existence of the various component files. */
Language = 'ENGLISH'
Result = SysFileTree( 'PLUMA.EXE', 'Files', 'F' )
If Files.0 = 0 Then
Do
Say 'ERROR: PLUMA.EXE not found!'
Signal DONE
End
Result = SysFileTree( Language".DLL", 'Files', 'F' )
If Files.0 = 0 Then
Do
Say 'ERROR: 'Language'.DLL not found!'
Signal DONE
End
Result = SysFileTree( Language".HLP", 'Files', 'F' )
If Files.0 = 0 Then
Do
Say 'ERROR: 'Language'.HLP not found!'
Signal DONE
End
/* Ask for the target directory name. */
Say 'Please enter the full name of the directory to which'
Say ' you want PLUMA installed (default C:\OS2\APPS): '
Pull Directory
If Directory = "" Then Directory = 'C:\OS2\APPS'
/* Create the target directory if necessary. */
Result = SysFileTree( Directory, 'Dirs', 'D' )
If Dirs.0 = 0 Then
Do
Result = SysMkDir( Directory )
if Result == 0 Then
Do
End
Else
Do
Say 'ERROR: Unable to create target directory.'
Signal DONE
End
End
Say ''
/* Perform the installation. */
Say 'Copying PLUMA to ' Directory '...'
Copy PLUMA.EXE Directory '1>NUL'
Copy Language".DLL" Directory"\PLUMA.DLL" '1>NUL'
Copy Language".HLP" Directory"\PLUMA.HLP" '1>NUL'
Say 'Creating program object...'
Type = 'WPProgram'
Folder = '<WP_DESKTOP>'
Parms = "MINWIN=DESKTOP;PROGTYPE=PM;EXENAME="Directory"\PLUMA.EXE;STARTUPDIR="Directory";OBJECTID=<PLUMA>;NOPRINT=YES;ASSOCTYPE=Pluma;"
Result = SysCreateObject( Type, Title, Folder, Parms, 'ReplaceIfExists' )
If Result = 1 Then
Say 'Object created! Done.'
Else
Say 'ERROR: Object not created.'
Signal DONE
FAILURE:
Say 'REXX failure.'
Signal DONE
HALT:
Say 'REXX halt.'
Signal DONE
SYNTAX:
Say 'REXX syntax error.'
Signal DONE
DONE:
Exit